package com.zkr.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;
import java.util.Date;
@Getter
@Setter
@ToString
public class User implements Serializable{

	private static final long serialVersionUID = -8850122855628729990L;

	private Integer id;
	@NotEmpty(message="用户名不能为空")
	@Length(min = 5, max = 20, message = "用户名长度必须位于5到20之间")
	private String name;
	private Date birthday;
	private String address;
}
